import 'package:flutter/material.dart';

class ImageDetailPage extends StatelessWidget {
  final String src;

  const ImageDetailPage({Key? key, required this.src}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Center(
        child: GestureDetector(
            onTap: () {
              Navigator.of(context).pop();
            },
            child: Hero(tag: src, child: Image.network(src))),
      ),
    );
  }
}
